Cocktail Help Reference
ShowMessageAsync(String,IEnumerable<DialogResult>,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > DialogManager Class > ShowMessageAsync Method : ShowMessageAsync(String,IEnumerable<DialogResult>,String) Method



message
The message to display.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the message box.

Glossary Item Box

Displays a modal message box.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ShowMessageAsync( _
   ByVal message As String, _
   ByVal dialogButtons As IEnumerable(Of DialogResult), _
   Optional ByVal title As String _
) As DialogOperationResult(Of DialogResult)
Visual Basic (Usage)Copy Code
Dim instance As DialogManager
Dim message As String
Dim dialogButtons As IEnumerable(Of DialogResult)
Dim title As String
Dim value As DialogOperationResult(Of DialogResult)
 
value = instance.ShowMessageAsync(message, dialogButtons, title)

Parameters

message
The message to display.
dialogButtons
A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
title
Optional title of the message box.

Return Value

A value representing the asynchronous operation of displaying the dialog.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.